package assets.loading;

/**
 * An exception which is used to indicate a load failure.
 * 
 * @author Joel Rausch
 */
@SuppressWarnings("serial")
public class LoadException extends Exception {

	public enum LoadFailure {
		FileNotFound,
		UnknownFileFormat,
		ShaderCreationFailure
	}
	
	/**
	 * Constructor taking the name of the asset which failed to load
	 * and the reason for the failure.
	 * @param assetName
	 * @param reason
	 */
	public LoadException(String assetName, LoadFailure reason) {
		super(assetName + ": " + reason);
	}
}
